export const getLocal = () => {
	const position= {
		code: '-1',
		data: ''
	}
	uni.getLocation({
	  geocode: true,
	  success: res => {
	    uni.chooseLocation({
	      latitude: res.latitude,
	      longitude: res.longitude,
	      success: result => {
	        this.locationInfo = result
	        this.params.place = result.name
			log(`经度:${res.longitude}, 纬度:${res.latitude}`);
			position={
				data:result,
				code:100,
			}
	      }
	    })
	  }
	})
    
	return position;
}


				